g_free (utf8str);
}
break;
+ default:
+ g_assert_not_reached ();
+ break;
}
/* clean */
gtk_im_context_ime_focus_out (GtkIMContext *context)
{
GtkIMContextIME *context_ime = GTK_IM_CONTEXT_IME (context);
- HWND hwnd;
- HIMC himc;
gboolean was_preediting;
if (!GDK_IS_SURFACE (context_ime->client_surface))
get_window_position (context_ime->client_surface, &wx, &wy);
/* FIXME! */
{
- HWND hwnd;
+ HWND impl_hwnd;
POINT pt;
RECT rc;
- hwnd =
+ impl_hwnd =
gdk_win32_surface_get_impl_hwnd (context_ime->client_surface);
- GetWindowRect (hwnd, &rc);
+ GetWindowRect (impl_hwnd, &rc);
pt.x = wx;
pt.y = wy;
- ClientToScreen (hwnd, &pt);
+ ClientToScreen (impl_hwnd, &pt);
wx = pt.x - rc.left;
wy = pt.y - rc.top;
}
char *version;
gl_version = epoxy_gl_version ();
- version = g_strdup_printf ("WGL %d.%d", gl_version / 10, gl_version % 10, NULL);
+ version = g_strdup_printf ("WGL %d.%d", gl_version / 10, gl_version % 10);
gtk_label_set_text (GTK_LABEL (gen->gl_version), version);
g_free (version);
- gtk_label_set_text (GTK_LABEL (gen->gl_vendor), glGetString (GL_VENDOR));
+ gtk_label_set_text (GTK_LABEL (gen->gl_vendor), (const char *) glGetString (GL_VENDOR));
append_wgl_extension_row (gen, "WGL_EXT_create_context");
append_wgl_extension_row (gen, "WGL_EXT_swap_control");